package com.ruoyi.company.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.company.mapper.HouseCompanyTMapper;
import com.ruoyi.company.domain.HouseCompanyT;
import com.ruoyi.company.service.IHouseCompanyTService;

/**
 * 施工企业Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-23
 */
@Service
public class HouseCompanyTServiceImpl implements IHouseCompanyTService 
{
    @Autowired
    private HouseCompanyTMapper houseCompanyTMapper;

    /**
     * 查询施工企业
     * 
     * @param companyId 施工企业主键
     * @return 施工企业
     */
    @Override
    public HouseCompanyT selectHouseCompanyTByCompanyId(Long companyId)
    {
        return houseCompanyTMapper.selectHouseCompanyTByCompanyId(companyId);
    }

    /**
     * 查询施工企业列表
     * 
     * @param houseCompanyT 施工企业
     * @return 施工企业
     */
    @Override
    public List<HouseCompanyT> selectHouseCompanyTList(HouseCompanyT houseCompanyT)
    {
        return houseCompanyTMapper.selectHouseCompanyTList(houseCompanyT);
    }

    @Override
    public HouseCompanyT selectCompanyName(HouseCompanyT houseCompanyT) {
        return houseCompanyTMapper.selectCompanyName(houseCompanyT);
    }

    /**
     * 新增施工企业
     * 
     * @param houseCompanyT 施工企业
     * @return 结果
     */
    @Override
    public int insertHouseCompanyT(HouseCompanyT houseCompanyT)
    {
        return houseCompanyTMapper.insertHouseCompanyT(houseCompanyT);
    }

    /**
     * 修改施工企业
     * 
     * @param houseCompanyT 施工企业
     * @return 结果
     */
    @Override
    public int updateHouseCompanyT(HouseCompanyT houseCompanyT)
    {
        return houseCompanyTMapper.updateHouseCompanyT(houseCompanyT);
    }

    /**
     * 批量删除施工企业
     * 
     * @param companyIds 需要删除的施工企业主键
     * @return 结果
     */
    @Override
    public int deleteHouseCompanyTByCompanyIds(Long[] companyIds)
    {
        return houseCompanyTMapper.deleteHouseCompanyTByCompanyIds(companyIds);
    }

    /**
     * 删除施工企业信息
     * 
     * @param companyId 施工企业主键
     * @return 结果
     */
    @Override
    public int deleteHouseCompanyTByCompanyId(Long companyId)
    {
        return houseCompanyTMapper.deleteHouseCompanyTByCompanyId(companyId);
    }
}
